<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const token = uni.getStorageSync('token')
			if(token != '' && token != null) {
				this.globalData.isLogin = true;
				const userInfo = uni.getStorageSync('userInfo')
				this.globalData.userInfo = userInfo;
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			isLogin: false,
			userInfo : null,
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	/*每个页面公共css */
	page{
		background-color: #f2f4f6;
	}
</style>
